From ca8e6824eaa711105f4092365792720c9dde026b Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 18 Jun 2026 19:21:59 +0100 Subject: remove Astro website --- website/src/pages/blog/[...slug].astro | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 website/src/pages/blog/[...slug].astro (limited to 'website/src/pages/blog/[...slug].astro') diff --git a/website/src/pages/blog/[...slug].astro b/website/src/pages/blog/[...slug].astro deleted file mode 100644 index 54cf9ac..0000000 --- a/website/src/pages/blog/[...slug].astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -import { type CollectionEntry, getCollection, render } from 'astro:content'; -import BlogPost from '../../layouts/BlogPost.astro'; -import { renderGemtextToHtml } from '../../renderGemtextToHtml'; - -export async function getStaticPaths() { - const posts = await getCollection('blog'); - return posts.map((post) => ({ - params: { slug: post.id }, - props: post, - })); -} -type Props = CollectionEntry<'blog'>; - -const post = Astro.props; -const Content = post.filePath?.endsWith('.gmi') - ? renderGemtextToHtml(post.body ?? '', post.data.title) - : (await render(post)).Content; ---- - - - { post.filePath?.endsWith('.gmi') ? : } - -- cgit v1.2.3